package com.yangchuang.openpicture.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 用户点赞/取消点赞图片DTO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UserLikePictureDTO {

    /**
     * 图片ID
     */
    @NotNull(message = "图片ID不能为空")
    @Min(value = 1, message = "图片ID必须大于0")
    private Long pictureId;


    @NotNull
    private Boolean isLike;
}